<?php

class CHCPlotBar extends AbstractHCPlotOptions
{
    public function __construct()
    {
        parent::__construct();
        $this->m_sType = 'bar';
    }
    
    
    /**
     *  The color of the border surronding each column or bar. Defaults to "#FFFFFF".
     *  
     * @param String $psColor
     */
    public function setBorderColor($psColor='#FFFFFF')
    {
        if (CSDebug::assertHex($psColor)) return false;
        
        $this->setParam('borderColor', $psColor);
    }
    
    
    /**
     * The corner radius of the border surronding each column or bar.
     * Defaults to 0.
     * 
     * @param $pnInteger
     */
    public function setBorderRadius($pnInteger=0)
    {
        if (CSDebug::assertInteger($pnInteger)) return false;
        
        $this->setParam('borderRadius', $pnInteger);
    }
    
    
    /**
     * The width of the border surronding each column or bar. 
     * Defaults to 1.
     *  
     * @param $pnInteger
     */
    public function setBorderWidth($pnInteger=1)
    {
        if (CSDebug::assertInteger($pnInteger)) return false;
        
        $this->setParam('borderWidth', $pnInteger);
    }
    
    
    /**
     * Padding between each value groups, in x axis units. 
     * 
     * Defaults to .2.
     * 
     * @param $pnFloat
     */
    public function setGroupPadding($pnFloat=.2)
    {
        if (CSDebug::assertFloat($pnFloat)) return false;
        
        $this->setParam('groupPadding', $pnFloat);
    }
    
    
    /**
     * Padding between each column or bar, in x axis units. 
     * 
     * Defaults to .1.
     * 
     * @param unknown_type $pnFloat
     */
    public function setPointPadding($pnFloat=.2)
    {
        if (CSDebug::assertFloat($pnFloat)) return false;
        
        $this->setParam('pointPadding', $pnFloat);
    }
}

?>